package com.example.yibu.modelConfig;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class StartExecutionRun implements CommandLineRunner {
    @Autowired
    private AsyncService asyncService;

    @Override
    public void run(String... args) throws Exception {
        asyncService.processQueue();
    }
}
